package com.sf.algo.solve.solver;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor;

@Configuration
public class TheadPoolConfig {
	@ConfigurationProperties(prefix = "spring.threadpool")
	@Bean("solverThreadPool")
	public ThreadPoolTaskExecutor getThreadPool() {
		return new ThreadPoolTaskExecutor();
	}

}
